﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Import Namespace="AVO" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="avoeditfield.aspx.cs" Inherits="AVO.Layouts.AVO.avoeditfield" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="styles.css" rel="Stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div class="field">
        <div class="script left">
            <asp:CheckBox ID="chbEnabled" runat="server" Text="Visibility Script Enabled" />
            <asp:TextBox ID="tbScript" runat="server" TextMode="MultiLine" Rows="25" Width="100%" />
            <div>
                <wssuc:ButtonSection runat="server">
                    <Template_Buttons>
                        <asp:Button ID="btnCheck" runat="server"  Enabled="false" Text="Compile" OnClick="btnCheck_Clicked" CssClass="ms-ButtonHeightWidth" />
                        <asp:Button ID="Button1" runat="server" class="ms-ButtonHeightWidth"  OnClick="btnSave_Clicked" Text="<%$Resources:wss,multipages_okbutton_text%>" шd="btnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
                    </Template_Buttons>
                </wssuc:ButtonSection>
            </div>
        </div>
        <div class="info left">
            <div class="shadow">
                <div class="content">
                    <strong>Available Variables:</strong>
                    <ul>
                        <li>$httpContext</li>
                        <li>$spContext</li>
                        <li>$ContentType</li>
                        <li>$FormMode</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Edit Field Visibility Options
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<%
	if (CurrentList != null)
	{
%>
		<a id=onetidListHlink HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(CurrentList.DefaultViewUrl,true),Response.Output);%>><%SPHttpUtility.HtmlEncode(CurrentList.Title,Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" /> <a HREF=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode("/_layouts/listedit.aspx?List=" + CurrentList.ID.ToString(),true),Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server" String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2" runat="server" />
<%
	}
	else
	{
%>
	   <a href="settings.aspx"><SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,settings_pagetitle%>" EncodeMethod="HtmlEncode"/></a>
       &#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow3" runat="server" /><SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:wss,contentTypePageTitle%>" EncodeMethod='HtmlEncode'/>&#32;
       <SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow4" runat="server" />
<%
	}
%>
<%
    if (ContentTypeName != null)
	{
%>
	<%SPHttpUtility.HtmlEncode(ContentTypeName,Response.Output); %>
<%
	}
%>

&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow5" runat="server" />&#32;
<a href=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(PageToRedirectOnCancel,true),Response.Output);%>><SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="Advanced Field Visibility" EncodeMethod="HtmlEncode"/></a>
&#32;:&#32;<i><%SPHttpUtility.HtmlEncode(CurrentField.FieldTitle, Response.Output); %></i>
</asp:Content>
